package com.library.management.mapper;

import com.library.management.entity.BookCategory;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 图书分类Mapper接口
 */
public interface BookCategoryMapper {
    /**
     * 添加图书分类
     */
    int insert(BookCategory bookCategory);

    /**
     * 根据ID删除图书分类
     */
    int deleteById(Long id);

    /**
     * 更新图书分类
     */
    int update(BookCategory bookCategory);

    /**
     * 根据ID查询图书分类
     */
    BookCategory selectById(Long id);

    /**
     * 查询图书分类列表
     */
    List<BookCategory> selectList(BookCategory bookCategory);

    /**
     * 查询图书分类总数
     */
    long selectCount(BookCategory bookCategory);

    /**
     * 查询所有图书分类
     */
    List<BookCategory> selectAll();
}